//
//  ViewController.swift
//  test
//
//  Created by 李光辉 on 2024/9/1.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        var btn = UIButton()
        btn.backgroundColor = UIColor.red
        btn.frame = CGRect(x: 100, y: 100, width: 100, height: 100)
        self.view.addSubview(btn)
        
        var btn2 = UIButton()
        btn.backgroundColor = UIColor.red
        btn.frame = CGRect(x: 0, y: 200, width: 100, height: 100)
        self.view.addSubview(btn2)
        
        
       
    }


}

